#ifndef ML_IO_TOOLS_H_
#define ML_IO_TOOLS_H_

#include "ZMLAlgorithm.h"

GLOBAL_NAMESPACE_BEGIN
NAMESPACE_MACHINE_LEARNING_BEGIN

class MLJointBoosting;
class ImageLoader;

class MLIOTools
{
public:
    static bool saveToXMLFile  (const char* xmlFile, const MLJointBoosting* learner);
    static bool loadFromXMLFile(const char* xmlFile, MLJointBoosting* learner);

    static bool saveToXMLFile  (const char* xmlFile, const ImageLoader* imageLoader);
    static bool loadFromXMLFile(const char* xmlFile, ImageLoader* imageLoader);
};

NAMESPACE_MACHINE_LEARNING_END
GLOBAL_NAMESPACE_END

#endif//ML_IO_TOOLS_H_